/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.sales.generics.client.presenter.functions;

import com.google.inject.Inject;
import com.google.web.bindery.event.shared.EventBus;
import com.gwtplatform.mvp.client.PresenterWidget;
import com.gwtplatform.mvp.client.View;

/**
 *
 * @author v
 */
public class PopUpFunctionsPresenter extends PresenterWidget<PopUpFunctionsPresenter.Display> {

    @Inject
    public PopUpFunctionsPresenter(EventBus eventBus, Display view) {
        super(eventBus, view);
    }

    @Override
    protected void onBind() {
        super.onBind();
        getView().build();
    }

    public void show() {
        getView().show();
    }

    public void hide() {
        getView().hide();
    }

    public interface Display extends View {

        void build();

        void show();

        void hide();
    }
}
